package tp1POO.Modelo;

public abstract class ObjetoPOO {
	public abstract String getIdentifier();
	public String toString()
	{
		return getIdentifier();
	}

	public boolean equals(Object obj) {
		if (obj instanceof ObjetoPOO)
			if (((ObjetoPOO)obj).getIdentifier().compareTo(this.getIdentifier()) == 0)
				if (obj.getClass() == this.getClass())
					return true;
		return false;
	}
	
}
